package behavioral.responsibilitychain;

public class Test {

    public static void main(String[] args) {
        Leader pCeo = new CEO();
        Leader pGeneralManager = new GeneralManager();
        pGeneralManager.setLeader(pCeo);
        Leader pTinyManager = new TinyManager();
        pTinyManager.setLeader(pGeneralManager);

        pTinyManager.solve("小明", 50);
        pTinyManager.solve("小张", 500);
        pTinyManager.solve("小丽", 5000);
    }

}
